export default {
  computed: {
    attrs() {
      const attrs = {}
      if(this.curComp.attrs && this.curComp.attrs.length) {
        for(let attr of this.curComp.attrs) {
          attrs[attr.name] = attr.value
        }
      }
      return attrs
    }
  }
}